Root/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /* Irrlicht Library Wrapper Created by: Nathan Adams Copyright (C) 2008 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #ifndef IRRCOLOR_H #define IRRCOLOR_H #include <iostream> #include <strings.h> #include "irrlicht.h" //#include "IrrLib.h" class IrrColor { private : irr::u32 alpha; void Init(); //who knows? public : //irr::video::SColor(alpha, 255, 0, 0); irr::video::SColor RED; irr::video::SColor ORANGE; irr::video::SColor YELLOW; irr::video::SColor GREEN; irr::video::SColor BLUE; irr::video::SColor DARK_GREEN; irr::video::SColor PINK; irr::video::SColor GREY; irr::video::SColor WHITE; irr::video::SColor BLACK; /*const ORANGE = irr::video::SColor(alpha, 255, 165, 0); const YELLOW = irr::video::SColor(alpha, 255, 255, 0); const GREEN = irr::video::SColor(alpha, 0, 255, 0); const BLUE = irr::video::SColor(alpha, 0, 0, 255); const DARK_GREEN = irr::video::SColor(alpha, 0, 100, 0); const PINK = irr::video::SColor(alpha, 255, 192, 203); const GREY = irr::video::Scolor(alpha, 190, 190, 190);*/ //void IrrColor::test(); IrrColor(); IrrColor(irr::u32 alpha); ~IrrColor(); int getAlpha(); void setAlpha( int alpha); irr::video::SColor returnColor(irr::core::stringw color); }; #endif |
Source at commit ca2aafbed07a created 11 years 4 months ago. By Nathan Adams, Migrating from google code |
---|